import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        name: "Index",
        component: () => import('@/views/Index.vue')
    },
    {
        path: '/demo',
        name: "Demo",
        component: () => import('@/views/Demo.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
